package com.qf.myrbac.sys.controller;

import com.qf.myrbac.sys.entity.SysDept;
import com.qf.myrbac.sys.service.SysDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 部门管理 前端控制器
 * </p>
 *
 * @author 徐英海
 * @since 2022-10-27
 */
@RestController
@RequestMapping("/sys/dept")
public class SysDeptController {
    @Autowired
    private SysDeptService deptService;

    @GetMapping("/list")
    public List<SysDept> list(@RequestParam Map<String, String> params) {
        return deptService.queryDeptByMap(params);
    }
}
